#ifndef _BUFFER_BITMAP_H_
#define _BUFFER_BITMAP_H_

#include <windows.h>

class CBufferBitmap
{
public:
	CBufferBitmap(void);
	~CBufferBitmap(void);

	bool Init(int width, int height);
	void Reset();

	bool SetImage(const char * szFilePath);
	bool SetBitmapData(int width, int height, byte * bit, int bit_len, byte * alpha, int alpha_len);
	bool DrawTo(CBufferBitmap & bitmap, int x, int y);

	int GetWidth() { return m_width; };
	int GetHeight() { return m_height; };

public:
	HBITMAP ExportBitmap();

private:
	byte * m_bit;
	byte * m_alpha;
	int m_width;
	int m_height;
};

#endif
